from common.config import yawConfig as Config
# from yawSrc.tools.loadFile import loadfile, toAttrCsv
from yawSrc.tools.loadFile import  toAttrCsv
from toolsSrc.files.loadFiles import loadfile

def hisCleanProcess(X):
    return X

def toCsv():
    columsList = [Config.WindSpeed, Config.ActPower, Config.WindDirection]
    X = loadfile(Config.poolRoot, columsList)  # 读取Cofnig().onlineDataRoot目录下的所有数据文件
    X = X[columsList]
    X.to_csv(Config.onlInitialData, index=False)

def initialData():
    toCsv()
    toAttrCsv(Config.onlInitialData, Config.onlInitialDataAttr)
    print('initialData 完毕................')

if __name__ == '__main__':
    initialData()